<div class="confirm" style="display:none;width: 80%;margin-left: 10%;margin-top: 40%;height: 100px;border: 1px solid #ccc;border-radius: 5px;position: fixed;background: #fff;box-shadow: 0 0 10px #aaa;padding: 10px;z-index: 99999;">
    <span id="confirm_msg" style="display: block;width: 100%;text-align: center;line-height: 25px;height: 50px;font-size: 14px;"></span>
    <span id="confirm_done" style="display: block;color: #fff;width: 80px;float: left;margin-left: 30px;text-align: center;font-size: 14px;background: #0dae8d;line-height: 25px;border-radius: 3px;">确定</span>
    <span id="confirm_close" style="display: block;color: #fff;width: 80px;float: right;margin-right: 30px;text-align: center;font-size: 14px;background: #0dae8d;line-height: 25px;border-radius: 3px;">关闭</span>
    <input id="confirm_url" type="hidden" value="">
</div>
<script>
    function confirm1(msg,url){
        $(".confirm").show();
        $("#confirm_msg").html(msg);
        $("#confirm_url").val(url);
    }
    $("#confirm_done").click(function(){
        var url = $("#confirm_url").val();
        window.location.href = url
    });
    $("#confirm_close").click(function(){
        $(".confirm").hide();
    })
</script>